(size_window): Set the window's orig_top to nil when
authorGerd Moellmann <gerd@gnu.org>
Fri, 26 Jan 2001 20:01:43 +0000 (20:01 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 26 Jan 2001 20:01:43 +0000 (20:01 +0000)
changing heights, so that a future shrink_mini_window won't
restore a bogus height.

src/window.c

index e507254f8c0c9d7a48f16fc5b22fc83b7b74f3a3..1b6ac07955d48dcc43c2a05d7ef319390c5ed3f0 100644 (file)
@@ -2445,6 +2445,7 @@ size_window (window, size, width_p, nodelete_p)
       sideward = &w->hchild;
       forward = &w->vchild;
       w->height = make_number (size);
+      w->orig_height = Qnil;
     }
 
   if (!NILP (*sideward))
@@ -3803,6 +3804,8 @@ shrink_mini_window (w)
     }
   else if (XFASTINT (w->height) > 1)
     {
+      /* Distribute the additional lines of the mini-window
+        among the other windows.  */
       Lisp_Object window;
       XSETWINDOW (window, w);
       enlarge_window (window, 1 - XFASTINT (w->height), 0);